package cn.edu.scau.cmi.zenghanxiong.hibernate.domain;


public class Student implements java.io.Serializable {

	  public Student() {
	  }

	  private Long id;
	  private Teacher teacher;
	  private String name;
	  public Student(Long id, String name, Teacher teacher) {
			this.id = id;
			this.name = name;
			this.teacher = teacher;
		}
	  public Long getId() {
	    return this.id;
	  }

	  public void setId(Long id) {
	    this.id = id;
	  }

	  public Teacher getTeacher() {
	    return this.teacher;
	  }

	  public void setTeacher(Teacher teacher) {
	    this.teacher = teacher;
	  }

	  public String getName() {
	    return this.name;
	  }

	  public void setName(String name) {
	    this.name = name;
	  }

}
